using UnityEngine;

public class AudioManager : MonoSingleton<AudioManager>
{
	public AudioSource _AudioS_BGM;

	public AudioSource _AudioS_UISFX;

	public AudioSource _AudioS_SFX;

	[Header("音效")]
	public AudioClip _AudioC_云宫迅音;

	public AudioClip _AudioC_黑神话_悟空_BGM;

	public AudioClip _AudioC_云宫迅音_战斗;

	public AudioClip _AudioC_UI_点击;

	private void Start()
	{
		_AudioS_BGM.ignoreListenerPause = true;
		_AudioS_UISFX.ignoreListenerPause = true;
	}

	public void F_Play_SFX(AudioClip clip)
	{
		_AudioS_SFX.PlayOneShot(clip);
	}

	public AudioSource F_GO_Play_SFX(AudioClip clip)
	{
		AudioSource audioSource = Object.Instantiate(_AudioS_SFX, base.transform);
		audioSource.clip = clip;
		audioSource.Play();
		return audioSource;
	}

	public void F_Play_UISFX(AudioClip clip)
	{
		_AudioS_UISFX.PlayOneShot(clip);
	}

	public void F_Play_BGM(AudioClip clip)
	{
		_AudioS_BGM.clip = clip;
		_AudioS_BGM.Play();
	}

	public void F_Play_UI_点击()
	{
		F_Play_UISFX(_AudioC_UI_点击);
	}
}
